/*
 *
 * File Name: tests.h
 * Author: liaoxuecheng
 * mail: liaoxuecheng@hotmail.com
 * Created Time: 2024年12月27日 星期五 14时47分18秒
 *
 */

#ifndef _TESTS_H_
#define _TESTS_H_

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <dbus/dbus.h>

#include "at_dbus.h"
#include "dbus_test_comm_loop.h"

#define CLIENT_OBJ_NAME "org.gtk.TestClient"
#define CLIENT_OBJ_PATH	"/org/gtk/TestClient"
#define CLIENT_OBJ_INTERFACE	"org.gtk.InterfaceClient"
#define SERVER_OBJ_NAME	"org.gtk.TestServer"
#define SERVER_OBJ_PATH	"/org/gtk/TestServer"
#define SERVER_OBJ_INTERFACE	"org.gtk.InterfaceServer"

#define SERVER_OBJ_INTERFACE_TEST "org.gtk.TestData"
#define SERVER_OBJ_PATH_TEST "/org/gtk/TestData"

#ifndef ARR_SIZE
#define ARR_SIZE(a) (sizeof((a))/sizeof((a[0])))
#endif

int test_vtable_register_object_path(DBusConnection *connection);
int test_method_and_signal_random();

#endif //_TESTS_H_
